import { resolve } from "path"
import {defineConfig} from "vitest/config"
import requireTransformPlugin from "vite-plugin-require-transform"
// import cssInjectedByJsPlugin from 'vite-plugin-css-injected-by-js'

// console.log(requireTransformPlugin.default)
export default defineConfig({
    plugins: [
        // cssInjectedByJsPlugin(),
        requireTransformPlugin.default({})
    ],
    build: {
        lib: {
            entry: resolve(__dirname, "src/main.ts"),
            name: 'imageinteraction',
            fileName: "main"
        },
        // sourcemap: true
    },
}) 